import axios from 'axios'
import qs from 'qs'
export default function(url, data){

  // JSON.stringify
return new Promise((resolve, reject) => {
  let promise
  promise = axios.post(url,data)
  promise.then(function (response) {
    resolve(response.data)
    }).catch(function (error) {
      reject(error)
  })
  })
}
